/**
 * 
 */
package cn.nawang.ebeim.ui.bean;

/**
 * @ClassName: IpMacBean
 * @Description: ip地址对应mac地址
 * @author zhangjf
 * @date 2015年11月17日 上午10:23:32
 * @version v1.0
 */
public class IpMacBean {

  private String ipv4;
  private String ipv6;
  private String mac;
  private Boolean isSelf = false;

  public String getIpv4() {
    return ipv4;
  }

  public void setIpv4(String ipv4) {
    this.ipv4 = ipv4;
  }

  public String getIpv6() {
    return ipv6;
  }

  public void setIpv6(String ipv6) {
    this.ipv6 = ipv6;
  }

  public String getMac() {
    return mac;
  }

  public void setMac(String mac) {
    this.mac = mac;
  }

  public Boolean getIsSelf() {
    return isSelf;
  }

  public void setIsSelf() {
    if (ipv4 != null && ipv4.length() > 0 && ipv4.indexOf("127.0.0.1") == -1 && mac != null
        && mac.length() > 0) {
      isSelf = true;
    }else{
      isSelf = false;
    }
  }

  @Override
  public String toString() {
    return "IpMacBean [ipv4=" + ipv4 + ", ipv6=" + ipv6 + ", mac=" + mac + ", isSelf=" + isSelf
        + "]";
  }

}
